// class SystemBankAndAuthListVo {

//   SystemBankAndAuthData? data;

//   SystemBankAndAuthListVo({this.data});

//   SystemBankAndAuthListVo.fromJson(Map<String, dynamic> json) {
//     data = json['data'] != null ? new SystemBankAndAuthData.fromJson(json['data']) : null;
//   }

//   Map<String, dynamic> toJson() {
//     final Map<String, dynamic> data = new Map<String, dynamic>();
//     if (this.data != null) {
//       data['data'] = this.data!.toJson();
//     }
//     return data;
//   }
// }

// class SystemBankAndAuthData {
//   List<Banks>? banks;
//   List<IdentityTypes>? identityTypes;

//   SystemBankAndAuthData({this.banks, this.identityTypes});

//   SystemBankAndAuthData.fromJson(Map<String, dynamic> json) {
//     if (json['banks'] != null) {
//       banks = [];
//       json['banks'].forEach((v) {
//         banks!.add(new Banks.fromJson(v));
//       });
//     }
//     if (json['identity_types'] != null) {
//       identityTypes = [];
//       json['identity_types'].forEach((v) {
//         identityTypes!.add(new IdentityTypes.fromJson(v));
//       });
//     }
//   }

//   Map<String, dynamic> toJson() {
//     final Map<String, dynamic> data = new Map<String, dynamic>();
//     if (this.banks != null) {
//       data['banks'] = this.banks!.map((v) => v.toJson()).toList();
//     }
//     if (this.identityTypes != null) {
//       data['identity_types'] =
//           this.identityTypes!.map((v) => v.toJson()).toList();
//     }
//     return data;
//   }
// }

// class Banks {
//   int? id;
//   String? title;
//   String? code;
//   int? channel;

//   Banks({this.id, this.title, this.code, this.channel});

//   Banks.fromJson(Map<String, dynamic> json) {
//     id = json['id'];
//     title = json['title'];
//     code = json['code'];
//     channel = json['channel'];
//   }

//   Map<String, dynamic> toJson() {
//     final Map<String, dynamic> data = new Map<String, dynamic>();
//     data['id'] = this.id;
//     data['title'] = this.title;
//     data['code'] = this.code;
//     data['channel'] = this.channel;
//     return data;
//   }
// }

// class IdentityTypes {
//   int? id;
//   String? title;

//   IdentityTypes({this.id, this.title});

//   IdentityTypes.fromJson(Map<String, dynamic> json) {
//     id = json['id'];
//     title = json['title'];
//   }

//   Map<String, dynamic> toJson() {
//     final Map<String, dynamic> data = new Map<String, dynamic>();
//     data['id'] = this.id;
//     data['title'] = this.title;
//     return data;
//   }
// }


class SystemBankAndAuthListVo {
  List<Banks>? data;
  SystemBankMeta? meta;

  SystemBankAndAuthListVo({this.data, this.meta});

  SystemBankAndAuthListVo.fromJson(Map<String, dynamic> json) {
    if (json['data'] != null) {
      data = <Banks>[];
      json['data'].forEach((v) {
        data!.add(new Banks.fromJson(v));
      });
    }
    meta = json['meta'] != null ? new SystemBankMeta.fromJson(json['meta']) : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.data != null) {
      data['data'] = this.data!.map((v) => v.toJson()).toList();
    }
    if (this.meta != null) {
      data['meta'] = this.meta!.toJson();
    }
    return data;
  }
}

class Banks {
  int? id;
  int? channel;
  String? code;
  String? title;

  Banks({this.id, this.channel, this.code, this.title});

  Banks.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    channel = json['channel'];
    code = json['code'];
    title = json['title'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['channel'] = this.channel;
    data['code'] = this.code;
    data['title'] = this.title;
    return data;
  }
}

class SystemBankMeta {
  List<IdentityType>? identityType;

  SystemBankMeta({this.identityType});

  SystemBankMeta.fromJson(Map<String, dynamic> json) {
    if (json['identity_type'] != null) {
      identityType = <IdentityType>[];
      json['identity_type'].forEach((v) {
        identityType!.add(new IdentityType.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.identityType != null) {
      data['identity_type'] =
          this.identityType!.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class IdentityType {
  int? id;
  String? title;

  IdentityType({this.id, this.title});

  IdentityType.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    title = json['title'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['title'] = this.title;
    return data;
  }
}
